package com.gitee.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gitee.bo.FoodBo;
import com.gitee.pojo.Food;
import com.gitee.vo.PageVo;

/**
 * 菜品管理
 */
public interface IFoodService extends IService<Food> {

    /**
     * 菜品列表
     * @param keywords
     * @param pageNum
     * @param pageSize
     * @return {@link Food}
     */
    PageVo<Food> pageFoods(String keywords, Integer pageNum, Integer pageSize);

    /**
     * 添加菜品
     * @param foodBo
     * @return
     */
    Boolean addFood(FoodBo foodBo);

    /**
     * 更新菜品
     * @param foodBo
     * @param foodId
     * @return
     */
    Boolean updateFood(FoodBo foodBo, Integer foodId);

    /**
     * 删除菜品
     * @param foodId
     * @return
     */
    Boolean deleteFood(Integer foodId);

    /**
     * 批量删除菜品
     * @param foodIds
     * @return
     */
    Boolean deleteFoodBatch(Integer[] foodIds);
}
